<!--发起流程-->
<template>
  <div class="Initiate">
    <div class="form-body" v-if="processDefinitionId">
      <FormRender :taskStatus="G.TASK_STATUS.INITIATE_APPLICATION" ref="formRender"
                  @success="success" :processDefinitionId="processDefinitionId"
      />
    </div>
  </div>
</template>
<script setup name="Initiate">
import FormRender from "@/views/flow/createDirectly/generatorForm/FormRender/index.vue";
const {proxy} = getCurrentInstance();
const props = defineProps({})

const processDefinitionId = computed(() => proxy.$route.params.id)
//表单提交
const success = async () => {

}
const resetForm = () => {
}
</script>
<style scoped lang="scss">
.Initiate {
  height: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;

  .title {
    border-bottom: 1px solid #eee;
    flex: 0 0 auto;
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #fff;
  }

  .form-body {
    flex: 0 1 auto;
    width: 100%;
    overflow: hidden;
    background: #fff;
  }
}
</style>
